package cz.semjob.learning.instances;

import java.util.List;

import cz.semjob.document.annotation.metadata.Entity;
import cz.semjob.document.processing.DocumentInstance;
import cz.semjob.learning.data.attribute.AInstanceAttribute;

public class LabeledTextInstance extends UnlabeledTextInstance {
	
	public LabeledTextInstance(List<AInstanceAttribute> attributesList, DocumentInstance documentInstance) {
		super(attributesList, documentInstance);
	}


	private Entity label;
	
	private boolean positive;

	

	public Entity getLabel() {
		return label;
	}

	public void setLabel(Entity label) {
		this.label = label;
	}
	
	public boolean isPositive() {
		return positive;
	}

	public void setPositive(boolean positive) {
		this.positive = positive;
	}


	@Override
	public String toString() {
		return "LabeledTextInstance [label=" + label + ", text=" + text
				+ ",  attributeValues=" + attributeValues
				+ "]\n";
	}
	
}
